package com.lujianfei.ann.network.utils;

public class LogUtils {

	public static final boolean debug = true;
	
	private static final String prefix = "Object-Oriented ";
	public static void Println(String x) {
		if(debug) {
			System.out.println(prefix+x);
		}
	}
	
	public static void Println() {
		if(debug) {
			System.out.println();
		}
	}
	
	public static void Print(String x) {
		if(debug) {
			System.out.print(prefix+x);
		}
	}
	
	public static void Print(String tag,double[] n) {
		// TODO Auto-generated method stub
		if(!debug) {
			return;
		}
		System.out.print(prefix+tag+"=[\t");
		for (int i = 0; i < n.length; i++) {
			System.out.print(n[i]+"\t");
		}
		System.out.print("]");
	}
	
	public static void Println(String tag,double[] n) {
		// TODO Auto-generated method stub
		if(!debug) {
			return;
		}
		System.out.print(prefix+tag+"=[\t");
		for (int i = 0; i < n.length; i++) {
			System.out.print(n[i]+"\t");
		}
		System.out.println("]");
	}
	public static void Println(String tag,double[][] w) {
		if(!debug) {
			return;
		}
		System.out.print(prefix+tag+"=\r\n[\r\n");
		for (int i = 0; i < w.length; i++) {
			for (int j = 0; j < w[0].length; j++) {
				System.out.print(w[i][j]+"\t");
			}
			System.out.println();
		}
		System.out.println("]");
	}
	
	public static void forcePrint(String x) {
		System.out.print(prefix+x);
	}
	
	public static void forcePrintln(String x) {
			System.out.println(prefix+x);
	}
	
	public static void forcePrint(String tag,double[] n) {
		// TODO Auto-generated method stub
		System.out.print(prefix+tag+"=[\t");
		for (int i = 0; i < n.length; i++) {
			System.out.print(n[i]+"\t");
		}
		System.out.print("]");
	}
	public static void forcePrint(String tag,double[][] w) {
		System.out.print(prefix+tag+"=\r\n[\r\n");
		for (int i = 0; i < w.length; i++) {
			for (int j = 0; j < w[0].length; j++) {
				System.out.print(w[i][j]+"\t");
			}
			System.out.println();
		}
		System.out.print("]");
	}
	public static void forcePrintln(String tag,double[] n) {
		// TODO Auto-generated method stub
		System.out.print(prefix+tag+"=[\t");
		for (int i = 0; i < n.length; i++) {
			System.out.print(n[i]+"\t");
		}
		System.out.println("]");
	}
	public static void forcePrintln(String tag,double[][] w) {
		System.out.print(prefix+tag+"=\r\n[\r\n");
		for (int i = 0; i < w.length; i++) {
			for (int j = 0; j < w[0].length; j++) {
				System.out.print(w[i][j]+"\t");
			}
			System.out.println();
		}
		System.out.println("]");
	}
}
